package main

import (
	"fmt"
	"strconv"
)

const Name = "303030"

func main() {

	//字符串使用反引号
	var str string = `
		func main() {
			user := User{Name: "Num2", Age: 10, Address: "河南"}
			user2, info := 7json.Marshal(user)
			fmt.Println(string(user2))
		}
        `
	fmt.Println(str)

	var by byte = 'a'
	var strs = fmt.Sprintf("%c", by)
	fmt.Printf("%T", strs)
	fmt.Println()
	var boo bool = true
	formatBool := strconv.FormatBool(boo)
	fmt.Printf("%q", formatBool)
	fmt.Println()
	var in1 int8 = 18
	formatInt := strconv.FormatInt(int64(in1), 2)
	fmt.Println(formatInt)
	fmt.Println("-----------------------------")
	fmt.Printf("%T", formatInt)

}
